<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="./4.css">
    <title>Title</title>
</head>
<body>
    <div class="wrapper">
        <div class="form-wrapper sign-up">
            <form action="">
                <h2>注册</h2>
                <div class="input-group">
                    <input type="text" id="user-name" required/>
                    <!--id 和 label 中的 for 对应当点击 label 中的元素会聚集到 id 元素所属元素-->
                    <!-- required 必填内容 -->
                    <label for="user-name">用户名</label>
                </div>
                <div class="input-group">
                    <input type="email" id="user-email" required/>
                    <label for="user-email">电子邮箱</label>
                </div>
                <div class="input-group">
                    <input type="password" id="pass-word" required/>
                    <label for="pass-word">密码</label>
                </div>
                <button type="submit" class="btn">注册</button>
                <!-- submit 点击该元素后会将表单数据传输 form 中 action 的URL-->
                <div class="sign-link">
                    <p>已经注册账户？<a href="#" class="signin-link">去登陆</a></p>
                </div>
            </form>
        </div>
        <div class="form-wrapper sign-in">
            <form action="">
                <h2>登录</h2>
                <div class="input-group">
                    <input type="text" id="username" required/>
                    <label for="username">用户名</label>
                </div>
                <div class="input-group">
                    <input type="text" id="password" required/>
                    <label for="password">密码</label>
                </div>
                <div class="forgot-password">
                    <a href="#">忘记密码</a>
                </div>
                <button type="submit" class="btn">登录</button>
                <div class="sign-link">
                    <p>还没有账户？<a href="#" class="signup-link">去注册</a></p>
                </div>
            </form>
        </div>
    </div>
    <script src="./4.js"></script>
</body>
</html>